import App from './App'
import Vuex from "vuex"
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
import store from "@/store/index.js"
const app = new Vue({
    ...App,
	store
})
// http拦截器，将此部分放在new Vue()和app.$mount()之间，才能App.vue中正常使用
import httpInterceptor from '@/common/request/http.interceptor.js';
Vue.use(httpInterceptor, app);

// http接口API抽离，免于写url或者一些固定的参数
import httpApi from '@/common/request/http.api.js';
Vue.use(httpApi, app);
app.$mount()

import dialog from '@/wxcomponents/@vant/weapp/dialog/dialog';
Vue.prototype.$dialog = dialog
import toast from '@/wxcomponents/@vant/weapp/toast/toast';
Vue.prototype.$toast = toast


// 导入api提供全局
import api from "@/common/api/index.js"
Vue.prototype.$api=api


import gePage from '@/components/ge-page/ge-page.vue';
Vue.component('ge-page', gePage)

import geUni from '@/common/js/ge-uni.js';

Vue.use(geUni);
